<template>
    <view>
        <NavBar title="关于我们" @back="goBack" />
        <view class="content">
            <view class="content-item">
                <view class="content-item-title">
                    <!-- 图片 -->
                    <image :src="formData.url" mode=""></image>
                </view>
                <view class="content-item-content">
                    <text>{{ formData.content }}</text>
                </view>
            </view>
        </view>
    </view>
</template>

<script>
import NavBar from '@/components/NavBar/index.vue'
import { getUserInfo } from '@/utils/app'
export default {
    components: { NavBar },
    data() {
        return {
            formData: {
                url: '',
                content: ''
            }
        };
    },
    onLoad() {
        this.getUserInfo()
    },
    methods: {
        onPullDownRefresh() {
            this.getUserInfo()
        },
        getUserInfo() {
            getUserInfo({ type: 3 }).then(res => {
                if (res && res.code == 200) {
                    this.formData = res.data
                }
            })
        },
        goBack() {
            uni.navigateBack({
                delta: 1
            });
        }
    }
}
</script>

<style lang="scss" scoped>
.content {
    padding: 0 40rpx;

    .content-item {
        margin-bottom: 40rpx;

        .content-item-title {
            text-align: center;
            padding: 50rpx;

            image {
                width: 100%;
            }
        }

        .content-item-content {
            font-family: Alibaba PuHuiTi 2.0;
            font-size: 14px;
            font-weight: 500;
            font-size: 28rpx;
            color: #333;
            line-height: 40rpx;
        }
    }
}
</style>
